home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol E-12 / Vol E-12.iso / games / barbie / barbi001.swf / scripts / frame_3 / PlaceObject2_60_118 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Text File  |  2012-05-21  |  729b  |  32 lines

  1. onClipEvent(load){
  2.    function begin()
  3.    {
  4.       setProperty(this, _alpha, "0");
  5.       i = 1;
  6.       while(_root.rows >= i)
  7.       {
  8.          k = 1;
  9.          while(_root.cols >= k)
  10.          {
  11.             if(_root.grid[i][k] == 9)
  12.             {
  13.                _root.startrow = i;
  14.                _root.startcol = k;
  15.                _root.oldrows = i;
  16.                _root.oldcols = k;
  17.                _root.newpos = _root.cols * i + k;
  18.                _root.startpos = _root.cols * i + k;
  19.                this.swapDepths(_root.startpos * 2 + 1);
  20.             }
  21.             k++;
  22.          }
  23.          i++;
  24.       }
  25.    }
  26.    _root.dir = 4;
  27.    _root.dirr = 0;
  28.    _root.dirc = -1;
  29.    begin();
  30.    _root.life = 0;
  31. }
  32.